package com.wxapi.process;

import net.sf.json.JSONObject;

public class WxResult {
	private JSONObject json = new JSONObject();
	public WxResult(JSONObject result){
		int errcode = result.getInt("errcode");
		json.put("errcode", errcode);
		json.put("errmsg", ErrCode.errMsg(errcode));
	}
	
	public String toString(){
		return json.toString();
	}
	
}
